Skip to content

ci: retry build dir cleanup on Windows#807

Merged
wgtmac merged 2 commits into
apache:mainfrom
abnobdoss:ci/retry-build-cleanup
Jul 12, 2026
Merged

ci: retry build dir cleanup on Windows#807
wgtmac merged 2 commits into
apache:mainfrom
abnobdoss:ci/retry-build-cleanup

Conversation

@abnobdoss

Copy link
Copy Markdown
Contributor

What

Retry rm -rf cleanup in the CMake CI helper scripts. Windows can briefly keep a just-built executable or DLL open, which can make cleanup fail even after the build and tests have passed.

build_example.sh retries before configuring and still lets mkdir fail if the directory remains, so it will not build in a half-deleted tree. build_iceberg.sh retries after the build and does not fail an otherwise successful job if final cleanup is still blocked.

Comment thread ci/scripts/build_example.sh
Comment thread ci/scripts/build_iceberg.sh
@abnobdoss

Copy link
Copy Markdown
Contributor Author

Thank you for reviewing @evindj; I've added the failure message as suggested!

@abnobdoss
abnobdoss requested a review from evindj July 5, 2026 16:43
@wgtmac

wgtmac commented Jul 12, 2026

Copy link
Copy Markdown
Member

Thank you, @abnobdoss and @evindj!

@wgtmac
wgtmac merged commit 0825f56 into apache:main Jul 12, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants